package net.vinote.sosa.core.lang;

import java.util.List;

public class SosaPaginationResult<T> extends SosaResult<List<T>> {

	/** */
	private static final long serialVersionUID = -7699802398438214292L;

	/** 数据总数 */
	private int total;

	/** 页码 */
	private int page;

	/** 单页数量 */
	private int pageSize;

	/**
	 * Getter method for property <tt>total</tt>.
	 *
	 * @return property value of total
	 */
	public final int getTotal() {
		return total;
	}

	/**
	 * Setter method for property <tt>total</tt>.
	 *
	 * @param total
	 *            value to be assigned to property total
	 */
	public final void setTotal(int total) {
		this.total = total;
	}

	/**
	 * Getter method for property <tt>page</tt>.
	 *
	 * @return property value of page
	 */
	public final int getPage() {
		return page;
	}

	/**
	 * Setter method for property <tt>page</tt>.
	 *
	 * @param page
	 *            value to be assigned to property page
	 */
	public final void setPage(int page) {
		this.page = page;
	}

	/**
	 * Getter method for property <tt>pageSize</tt>.
	 *
	 * @return property value of pageSize
	 */
	public final int getPageSize() {
		return pageSize;
	}

	/**
	 * Setter method for property <tt>pageSize</tt>.
	 *
	 * @param pageSize
	 *            value to be assigned to property pageSize
	 */
	public final void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

}
